<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="java.util.List"%>
<%@page import="com.ahp.bean.Factor"%>
<%@page import="java.util.Map"%>
<%@page import="java.util.Set"%>
<%@page import="com.ahp.bean.EvaleObject"%>
<%@ include file="../include/common.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>选择模板</title>
<script type="text/javascript" src="<%=path %>/js/jquery-1.3.2.js"></script>
<link rel="stylesheet" href="<%=path%>/style/style_manage.css" type="text/css"></link>
<style type="text/css">
div{margin: 8px auto;}
#out{width:60%; text-align: left;}
</style>
<script type="text/javascript">
next = function(){
	$("#myform").submit();
}
</script>
</head>
<body>
<div>
	<h1 style="position: relative;">评估对象与因子权重</h1>
	<div id="result" style="color:red;"></div>
	<div align="center">
	<%
	List<Factor> twoList = null;
	if(request.getAttribute("levTwoList")!=null){
		twoList = (List<Factor>)request.getAttribute("levTwoList");
	}
	List<EvaleObject> objList = null;
	if(request.getAttribute("objectList")!=null){
		objList = (List<EvaleObject>)request.getAttribute("objectList");
	}
	%><form action="<%=path %>/mod/ahp.action" method="post" id="myform">
	<table><tr>
		<td></td><%
			for(EvaleObject obj : objList){
				%><td align="center"><%=obj.getName() %></td><%
			}
		%>
	</tr><%
	for(Factor fac : twoList){
		%><tr><td align="right"><%=fac.getName() %></td><%
		for(EvaleObject obj : objList){
			%><td><input type="text" name="id-<%=obj.getEvaleId() %>-<%=fac.getFacId() %>" value="" /></td><%
		}
		%></tr><%
	}
	%></table>
	</form>
	<input type="button" value=" 评 估 " onclick="next();" />
	</div>
</div>
</body>
</html>